await @promise("lab.ready");

const defaultUploader = @options("default") || "qiniu";

@lab.export.error("./library/errors.js");

@lab.export.constant("./library/constants.js");

@lab.export.service("uploader@", "./service");

@lab.export.service("uploader",function (lab) {
    return {
        @uploadFile : function (file, options) {
            return lab.uploader[defaultUploader].@uploadFile(file, options);
        }
    }
});

@lab.export.model("./model");

await @promise("slime.ready");


@mew.emit("uploader.ready");
@mew.emit("uploader.qiniu.ready");